#define _CRT_SECURE_NO_WARNINGS 1
#include "SeqList.h"

void test1()
{
	SL s;
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 4);
	SLPushBack(&s, 4);
	SLPushBack(&s, 4);
	SLPushBack(&s, 4);
	SLPushBack(&s, 2);
	SLPushBack(&s, 8);
	SLPushBack(&s, 455);
	SLPushBack(&s, 4);


	SLPrint(&s);
}

void test2()
{
	SL s;
	SLInit(&s);

	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPrint(&s);

	SLInsert(&s, s.size, 10);
	SLPushFront(&s, 0);
	SLPushFront(&s, 0);
	SLPrint(&s);


	printf("%d\n",SLSearch(&s, 100));
	SLModify(&s, 1, 5);
	SLPrint(&s);
}
 
int main()
{
	test2();
	return 0;
}